package com.ruoyi.wisdom.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 设备管理对象 iot_pick_device
 * 
 * @author ruoyi
 * @date 2024-12-31
 */
public class IotPickDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 学校ID */
    @Excel(name = "学校ID")
    private Long comId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String deviceNo;

    /** 设备IP */
    @Excel(name = "设备IP")
    private String ip;

    /** 位置 */
    @Excel(name = "位置")
    private String location;

    /** 1入  2出 */
    @Excel(name = "1入  2出")
    private Integer type;

    /** 宿舍楼栋 0表示公告地方 */
    @Excel(name = "宿舍楼栋 0表示公告地方")
    private Long buildingId;

    /** 宿舍楼栋名字 */
    @Excel(name = "宿舍楼栋名字")
    private String buildingName;

    /** 状态：0未使用，1在线，-1掉线 */
    @Excel(name = "状态：0未使用，1在线，-1掉线")
    private Integer online;

    /** 最近在线时间 */
    @Excel(name = "最近在线时间")
    private String onlineTime;

    /** 状态 0删除 1正常 */
    @Excel(name = "状态 0删除 1正常")
    private Integer status;

    /** 1 人脸闸机 2 测温设备 3考勤摄设备 4人脸门禁 */
    @Excel(name = "1 人脸闸机 2 测温设备 3考勤摄设备 4人脸门禁")
    private Integer deviceType;

    private Integer deviceFactory;

    /** 长连接 */
    @Excel(name = "长连接")
    private Long ws;

    @Transient
    private String deviceNos;

    @Transient
    private List<String> inDeviceNos;

    @Transient
    private List<String> noInDeviceNos;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setComId(Long comId) 
    {
        this.comId = comId;
    }

    public Long getComId() 
    {
        return comId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceNo(String deviceNo) 
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo() 
    {
        return deviceNo;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setBuildingName(String buildingName) 
    {
        this.buildingName = buildingName;
    }

    public String getBuildingName() 
    {
        return buildingName;
    }
    public void setOnline(Integer online) 
    {
        this.online = online;
    }

    public Integer getOnline() 
    {
        return online;
    }
    public void setOnlineTime(String onlineTime)
    {
        this.onlineTime = onlineTime;
    }

    public String getOnlineTime()
    {
        return onlineTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDeviceType(Integer deviceType) 
    {
        this.deviceType = deviceType;
    }

    public Integer getDeviceType() 
    {
        return deviceType;
    }
    public void setWs(Long ws) 
    {
        this.ws = ws;
    }

    public Long getWs() 
    {
        return ws;
    }

    public void setDeviceNos(String deviceNos)
    {
        this.deviceNos = deviceNos;
    }
    public String getDeviceNos()
    {
        return deviceNos;
    }

    public void setDeviceFactory(Integer deviceFactory) { this.deviceFactory = deviceFactory; }
    public Integer getDeviceFactory() { return deviceFactory; }

    public void setInDeviceNos(List<String> inDeviceNos) { this.inDeviceNos = inDeviceNos; }
    public List<String> getInDeviceNos() { return inDeviceNos; }

    public void setNoInDeviceNos(List<String> noInDeviceNos) { this.noInDeviceNos = noInDeviceNos; }
    public List<String> getNoInDeviceNos() { return noInDeviceNos; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comId", getComId())
            .append("deviceName", getDeviceName())
            .append("deviceNo", getDeviceNo())
            .append("ip", getIp())
            .append("location", getLocation())
            .append("type", getType())
            .append("buildingId", getBuildingId())
            .append("buildingName", getBuildingName())
            .append("online", getOnline())
            .append("onlineTime", getOnlineTime())
            .append("status", getStatus())
            .append("deviceType", getDeviceType())
            .append("ws", getWs())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deviceNos", getDeviceNos())
            .append("deviceFactory", getDeviceFactory())
            .append("inDeviceNos", getInDeviceNos())
            .append("noInDeviceNos", getNoInDeviceNos())
            .toString();
    }
}
